import request from '@/api/request'

export function findBrandByPage(start = 1, limit = 10) { // 查询列表分页
  return request({
    url: `/lejuAdmin/brand/findBrandByPage/${start}/${limit}`,
    method: 'get'
  })
}

export function delBrand(productId) { // 删除
  return request({
    url: `/lejuAdmin/brand/delBrand/${productId}`,
    method: 'DELETE'
  })
}

export function updateBrand(data) { // 更新品牌
  return request({
    url: `/lejuAdmin/brand/updateBrand`,
    method: 'post',
    data
  })
}

export function switchShowStatus(data) { // swith显示隐藏
  return request({
    url: `/lejuAdmin/brand/switchShowStatus`,
    method: 'post',
    data
  })
}

export function addBrand(data) { // 添加品牌
  return request({
    url: `/lejuAdmin/brand/addBrand`,
    method: 'post',
    data
  })
}

